package ex.recruit.service;

import java.io.Serializable;
import java.util.List;

import modules.recruit.entity.Region;
import modules.recruit.service.RegionService;

public class RegionServiceEx extends RegionService {

	public Region getRegionByBaseSerial(Serializable baseId,
			String serial) {
		List l = getRegionDao()
				.find(
						"select m from Region m where m.status = '1' and m.base.id = ? and m.serial = ?",
						new Object[] { baseId, serial });
		if (l != null && l.size() > 0)
			return (Region) l.get(0);
		return null;
	}
}
